<!--Copyright (C) $today.year  深圳极向量科技有限公司 All Rights Reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业:[${DATA.jobId}]${DATA.jobName}执行失败提醒</title>
</head>
<body>
<p style="font-size: 14px">用户:${DATA.operator}发起的作业：[${DATA.jobId}]${DATA.jobName}执行失败！</p>
<p style="font-size: 14px">失败阶段为：</p>
<#if DATA.jobPhaseList?? && (DATA.jobPhaseList?size > 0)>
<table cellpadding="2" cellspacing="0" border="1" style="border-collapse: collapse; font-size: 14px;width:100%;text-align:center;">
  <tr>
    <th>阶段名称</th>
    <th>执行方式</th>
    <th>开始时间</th>
    <th>结束时间</th>
  </tr>
  <#list DATA.jobPhaseList as item>
  <#if item.status == 'failed'>
  <tr>
    <td>${item.name}</td>
    <td>${item.execMode}</td>
    <td>${(item.startTime)?string('yyyy-MM-dd HH:mm:ss')}</td>
    <td>${(item.endTime)?string('yyyy-MM-dd HH:mm:ss')}</td>
  </tr>
</#if>
</#list>
</table>
</#if>
<p style="font-size: 14px">详细信息请访问<a href="${DATA.homeUrl}/autoexec.html#/job-detail?id=${DATA.id}">作业详情</a>。</p>
</body>
</html>
